<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Subscriber Page</title>
		<!--  load the opensocial files here -->
		<script type="text/javascript" src="http://googlegadgetopensocial.googlecode.com/svn/trunk/opensocial/features/core/config.js"></script>
		<script type="text/javascript" src="http://googlegadgetopensocial.googlecode.com/svn/trunk/opensocial/features/core/json.js"></script>
		<script type="text/javascript" src="http://googlegadgetopensocial.googlecode.com/svn/trunk/opensocial/features/core/util.js"></script>
		<script type="text/javascript" src="http://googlegadgetopensocial.googlecode.com/svn/trunk/opensocial/features/core.io/io.js"></script>
		<script type="text/javascript" src="http://googlegadgetopensocial.googlecode.com/svn/trunk/opensocial/features/pubsub/pubsub-router.js"></script>
		<script type="text/javascript" src="http://googlegadgetopensocial.googlecode.com/svn/trunk/opensocial/features/pubsub/pubsub.js"></script>
		<script type="text/javascript" src="http://googlegadgetopensocial.googlecode.com/svn/trunk/opensocial/features/rpc/rpc.js"></script>
		<script type="text/javascript">
			<!-- Call back method for pubsub -->
			function callBack(sender, message) {
				alert("Recieved Message");
				document.getElementById("recieveMessage").value = message;
			}
			<!-- load at beginning of page -->
			function startUp() {
				gadgets.pubsub.subscribe("myChan", callBack);
			}
		</script>
	</head>
	<body onload="startUp()">
		<p>Recieve(Subscribe) Message Here</p>
		<input id="recieveMessage" type="text" />
	</body>
</html>
